/*
 * =====================================================================================
 *
 *       Filename:  ProjectIterator.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/06/2022 01:38:05 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */

#include "ProjectIterator.h"
CProjectIterator::CProjectIterator(vector < IProject* >pl): m_projectList(pl) {
    m_currentItem = 0;
}

CProjectIterator::~CProjectIterator(void) {
}

bool CProjectIterator::HasNext() {
    bool b = true;

    if (m_currentItem >= m_projectList.size()) {
        b = false;
    }

    return b;
}

IProject* CProjectIterator::Next() {
    IProject* pp = m_projectList.at(m_currentItem++);
    return pp;
}
